package com.dronff.common.feign;

import com.dronff.common.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author tyf
 * @date 2022/7/21 17:27
 */
@FeignClient("user-service")
public interface UserFeign {
    @GetMapping("login")
    public ResponseResult login(@RequestParam("id")Integer id,@RequestParam("password")String password);
    @GetMapping("dec")
    public ResponseResult dec(@RequestParam("id")Integer id,@RequestParam("pri")Integer pri);
}
